#include "WarGameLib.h"


class wgImage
{
	SDL_Surface *image;
	unsigned textureID;
public:
	wgImage();
	wgImage(int width, int height);
	~wgImage();
	bool Load(const char *filename);
	int getWidth();
	int getHeight();
	unsigned getPixel(int i);
	void getPixel(int i, int *pRed, int *pGreen, int* pBlue, int *pAlpha = 0);
	unsigned getPixel(int x, int y);
	void getPixel(int x, int y, int *pRed, int* pGreen, int *pBlue, int *pAlpha = 0);

	bool CreateTexture();
	void UseTexture();
};